function GenerateWikiText(variableName)

load(variableName);

fileID = fopen('wikioutput.txt','w');

seqLen = length(fullSeq);
numTargets = sum(fullSeq(:,1)==-1);

fprintf(fileID, '<code - N=%d, %dT>\n\n', seqLen, numTargets);

% Print fullSeq
fprintf(fileID, 'fullSeq = [');
fprintf(fileID,'%d ',fullSeq);
fprintf (fileID,']\n\n');

% Print Direct Effects Detection Power
fprintf(fileID, 'Direct effects DetectionPower = %f', detectPower_direct_effects);
fprintf (fileID,'\n\n');

% Print Adaptation Detection Power
fprintf(fileID, '1-back adaptation DetectionPower = %f', detectPower_1back_adaptation);
fprintf (fileID,'\n\n');

% Print counterbalance quality
fprintf(fileID, 'Counterbalance quality:\n');
fprintf (fileID,'n2 = %f\n', counterbalance_quality_n2);
fprintf (fileID,'n3 = %f\n', counterbalance_quality_n3);
fprintf (fileID,'n4 = %f\n', counterbalance_quality_n4);
fprintf (fileID,'n5 = %f\n', counterbalance_quality_n5);
fprintf (fileID,'\n');

% Print baseSeq
fprintf(fileID, 'baseSeq = [');
fprintf(fileID,'%d ',baseSeq);
fprintf (fileID,']\n\n');

% Print guide function
fprintf(fileID, 'probability_repetition = [');
fprintf(fileID,'%f ',guideFunction);
fprintf (fileID,']\n\n');

% Print strSeq
fprintf(fileID, 'strSeq = \n');
for i=1:size(newSeqString,1)
    for j=1:size(newSeqString,2)
        fprintf(fileID, newSeqString(i,j));
    end
    fprintf(fileID, '\n');
end
fprintf (fileID,'\n');

fprintf(fileID, '</code>');



fclose(fileID);